﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Web/BizWeb.Master" AutoEventWireup="true" CodeBehind="Linkman.aspx.cs" Inherits="Slja.WEB.Web.Tool.Linkman" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
             .gridcontainer input{width:90%;}   
    </style>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="inputtbl" style="padding:5px auto;margin:3px 2px;" >
    <table>
        <tr>
            <td>联系人类别：<asp:DropDownList runat="server" ID="drpType"></asp:DropDownList></td>
            <td>公司：<asp:DropDownList runat="server" ID="drpCompany"></asp:DropDownList></td>
            <td>
                按<asp:DropDownList runat="server" ID="drpQueryType">
                    <asp:ListItem Text="姓名" Value="FullName"></asp:ListItem>
                    <asp:ListItem Text="拼音" Value="Pinyin"></asp:ListItem>
                    <asp:ListItem Text="缩写" Value="ShortPY"></asp:ListItem>
                    <asp:ListItem Text="手机号" Value="MobileTel"></asp:ListItem>
                    <asp:ListItem Text="Email" Value="Email"></asp:ListItem>
                    <asp:ListItem Text="固定电话" Value="JobTel"></asp:ListItem>
                </asp:DropDownList>查:
                <asp:TextBox runat="server" ID="tbxKeyword"></asp:TextBox>
            </td>
            <td><asp:Button runat="server" ID="btnQuery" Text="查询" /></td>
        </tr>
    </table>
    <br />
    <div class="gridcontainer">
    <asp:LinkButton runat="server" ID="lbnAdd" Text="(+)添加联系人"></asp:LinkButton>
    <asp:GridView runat="server" ID="GridView1">
        <Columns>  
            <asp:BoundField HeaderText="姓名" HeaderStyle-Width="80px" DataField="FullName"/> 
            <asp:BoundField HeaderText="拼音" DataField="Pinyin" HeaderStyle-Width="80px"/>
            <asp:BoundField HeaderText="缩写" DataField="ShortPY" HeaderStyle-Width="50px"/>            
            <asp:TemplateField HeaderText="性别">
                <ItemTemplate><asp:Literal runat="server" ID="ltrGender"></asp:Literal></ItemTemplate>
                <EditItemTemplate><asp:DropDownList runat="server" ID="drpGender"><asp:ListItem Text="男" Value="1"></asp:ListItem><asp:ListItem Text="女" Value="0"></asp:ListItem></asp:DropDownList></EditItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="手机号" DataField="MobileTel"/>
             <asp:TemplateField HeaderText="类别">
                <ItemTemplate><asp:Literal runat="server" ID="ltrType"></asp:Literal></ItemTemplate>
                <EditItemTemplate><asp:DropDownList runat="server" ID="drpType"></asp:DropDownList></EditItemTemplate>
            </asp:TemplateField>
            <asp:BoundField HeaderText="Email" DataField="Email"/>
            <asp:BoundField HeaderText="固定电话" DataField="JobTel"/>
            <asp:BoundField HeaderText="备注"  DataField="Memo" />
            <asp:CommandField ShowCancelButton="true" ShowDeleteButton="true" ShowEditButton="true"  />

        </Columns>
        <EmptyDataTemplate>（空）</EmptyDataTemplate>
    </asp:GridView></div>
    </div>
</asp:Content>
